import pytest

if __name__ == '__main__':
    # 跑所有测试用例
    # pytest.main(['-sv'])
    # pytest.main(['-sv'])

    # 执行某目录的测试用例
    # pytest.main(['-sv', "case_pytest/case_fixture"])

    # 执行某一个文件
    # pytest - s - v - -env = testxxx  # --env= 指测试环境
    # pytest.main(['-sv', '--env=test', "dialogue_service/basic_support/test_wx.py"])
    # pytest.main(['-sv',"--setup-show", "test_config.py"])
    # python main.py --env tes

    # 执行某一个测试用例的方法
    # pytest.main(['-sv', "case_ddt/test_ddt.py::test_yaml"])
    pytest.main(['-sv', "dialogue_service/user_management/test_api_user_tag.py::test_update"])
    # 执行某种标志测试用例
    # pytest.main(['-sv', "--env=test" "-m biz"])

    # 执行不是这个标志的所有测试用例test_update
    # pytest.main(['-sv',  "-m not my_skip1"])
